package com.dubito.noteapp.domain.usecase

import com.dubito.noteapp.data.database.repository.NoteRepository
import com.dubito.noteapp.domain.model.Note

/**
 * author: LiLiang
 * createTime: 2022/10/7-16:28
 * remark:
 **/
class GetNote(private val repository: NoteRepository) {
    suspend operator fun invoke(id: Int): Note? {
        return repository.getNoteById(id)
    }
}